﻿@model CarparkIMS_Model.llqqPlateMapping

@{
    ViewData["Title"] = "Create";
}

<h1>新增車牌</h1>

<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create" asp-controller="PlateRegistration">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            
            <div class="form-group">
                <label for="PlateNo" class="control-label"></label>
                <input asp-for="PlateNo" class="form-control" />
                <span asp-validation-for="PlateNo" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label for="CardID" class="control-label"></label>
                <input asp-for="CardID" class="form-control" />
                <span asp-validation-for="CardID" class="text-danger"></span>
            </div>
            
            <div class="form-group">
                <input type="submit" value="登記" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index"><input type="button" value="返回列表" class="btn btn-info" /></a>
</div>

@section Scripts {
    @{
    await Html.RenderPartialAsync("_ValidationScriptsPartial");
}
}
